import { MOUNTED, MOUNTING, NOT_MOUNTED } from "../applications/app.helper";

export async function toMountPromise(app) {
    if(app.status !== NOT_MOUNTED){
        return app;
    }
    app.status = MOUNTING;
    await app.mount(app.customPorps);
    app.status = MOUNTED;
    return app;
}